<?php

/** 
 * @author Boo
 * 
 */
class RelativeTable {
	/**
	 *
	 * @var Array
	 */
	public static $key = array (
			'company' => array ( // table company
					'car',
					'driver',
					'user' 
			),
			'gps' => array ( // table gps
					'point',
					'trip',
					'customer' 
			),
			
			'userpower' => array ( // table userpower
					'user' 
			),
			'point' => array ( // table point
					'route' 
			),
			'trip' => array ( // table trip
					'ticket' 
			),
			'route' => array ( // table route
					'trip' ,
					'point'
			),
			'car' => array ( // table car
					'trip' ,
			),
			'driver' => array ( // table driver
					'trip' 
			),
			'customer' => array ( // table customer
					'ticket' 
			), 
	)
	;
	/**
	 *
	 * @param String $table        	
	 * @return Array
	 */
	public static function listTable($table) {
		return self::$key[$table];		
	}
}
?>